<?php


namespace app\admin\controller\base;


use app\admin\service\base\SubjectCateService as QuestionCateService;
use app\BaseController;
use think\response\Json;

class SubjectCate extends BaseController
{
    /**
     * 列表
     * @return Json
     */
    public function index(QuestionCateService $questionCateService):Json
    {
        $params = request()->param();
        return $questionCateService->index($params);
    }

    /**
     * 详情
     * @param QuestionCateService $questionCateService
     * @return Json
     */
    public function read(QuestionCateService $questionCateService):Json
    {
        $params = request()->param();
        return $questionCateService->read($params);
    }

    /**
     * 创建
     * @return Json
     */
    public function save(QuestionCateService $questionCateService):Json
    {
        $params = request()->param();
        return $questionCateService->save($params);
    }

    /**
     * 更新
     * @return Json
     */
    public function update(QuestionCateService $questionCateService):Json
    {
        $params = request()->param();
        return $questionCateService->update($params);
    }


    /**
     * 删除
     * @return Json
     */
    public function delete(QuestionCateService $questionCateService):Json
    {
        $params = request()->param();
        return $questionCateService->delete($params);
    }
}